from src.base.DataField import DataField


class EntEnterprise:
    id = DataField("id")
    enterprise_name = DataField("enterprise_name")
    credit_code = DataField("credit_code")
    ent_type = DataField("ent_type")
    ccx_eval = DataField("ccx_eval")
    ccx_eval_date = DataField("ccx_eval_date")
    foreign_external_eval_date = DataField("foreign_external_eval_date")
    external_eval_date = DataField("external_eval_date")
    external_eval = DataField("external_eval")
    foreign_external_eval = DataField("foreign_external_eval")
    nature = DataField("nature")
    debt_num = DataField("debt_num")
    debt_scale = DataField("debt_scale")
    trade_type = DataField("trade_type")
    srm_trade_type = DataField("srm_trade_type")
    srm_trade_type_superior = DataField("srm_trade_type_superior")
    sw_trade_type = DataField("sw_trade_type")
    sw_trade_type_superior = DataField("sw_trade_type_superior")
    region_code = DataField("region_code")
    platform_region_code = DataField("platform_region_code")
    administrative_id = DataField("administrative_id")
    work_region_name = DataField("work_region_name")
    ccx_eval_info = DataField("ccx_eval_info")
    external_eval_info = DataField("external_eval_info")
    external_eval_organization = DataField("external_eval_organization")
    foreign_external_eval_info = DataField("foreign_external_eval_info")
    foreign_external_eval_organization = DataField("foreign_external_eval_organization")
    registered_capital = DataField("registered_capital")
    establishment_date = DataField("establishment_date")
    enterprise_control = DataField("enterprise_control")
    share_holder = DataField("share_holder")
    share_per = DataField("share_per")
    position = DataField("position")
    update_time = DataField("update_time")
    registered_address = DataField("registered_address")
    business_scope = DataField("business_scope")
    # classify_type = DataField("classify_type")
    create_time = DataField("create_time")
    comp_code = DataField("comp_code")
    model = DataField("model")
    model_level = DataField("model_level")
    year = DataField("year")
    model_id = DataField("model_id")
    bank_region = DataField("bank_region")
    ccx_industry_code = DataField("ccx_industry_code")
    ccx_eval_value = DataField("ccx_eval_value")
    qe_eval = DataField("qe_eval")
    qe_sort = DataField("qe_sort")
    qe_year = DataField("qe_year")
    region_level = DataField("region_level")
    province_code = DataField("province_code")
    city_code = DataField("city_code")
    county_code = DataField("county_code")
    p_functional_code = DataField("p_functional_code")
    functional_code = DataField("functional_code")

    def __init__(self):
        for pKey in self.__class__.__dict__.keys():
            # 私有变量不处理
            if pKey.startswith("__"):
                continue
            self.__dict__[pKey] = None
